<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko">
<head>
<title><?=$popup_record['po_subject']?></title>
<link href="/agency/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript"  src="/js/popup.js"></script>
</head>

<body>
<?php if($preview) { ?>
<div style="position:absolute;width:<?=$popup_record['po_width']?>px;height:<?=$popup_record['po_height']?>px;overflow:hidden;z-index:999999;" id="lay_popup_skin<?=$seq?>">
<?php } else { ?>
<div style="position:absolute;top:<?=$popup_record['po_top']?>px;left:<?=$popup_record['po_left']?>px;width:<?=$popup_record['po_width']?>px;height:<?=$popup_record['po_height']?>px;overflow:hidden;z-index:999999;" id="lay_popup_skin<?=$seq?>">
<?php } ?>
  <form name="popup_form<?=$seq?>">
  <input type='hidden' name='cookieName' value="<?=$Popup->_cookie_prefix.$popup_record['po_seq']?>">
<table width="100%" height='100%' border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height='110'><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="160" background="/template/popup/images/pop_img02_topbg.gif"><img src="/template/popup/images/pop_img02_1.gif" width="160" height="110"></td>
        <td background="/template/popup/images/pop_img02_topbg.gif">&nbsp;</td>
        <td width="170" align="right" background="/template/popup/images/pop_img02_topbg.gif"><img src="/template/popup/images/pop_img02_2.gif" width="170" height="110"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td background="/template/popup/images/pop_img02_bg.gif" valign="top"><table width="100%" height='100%' border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" valign="top"><table width='100%' <?php if ($popup_record['po_height'] > 500) { ?>height='340'<?php } else { ?>height='100%'<?php } ?> cellpadding='0' cellspacing='0'>
			<tr>
				<td background="/template/popup/images/pop_img02_line.gif"></td>
			</tr>
		</table></td>
        <td valign="top" bgcolor="#FFFFFF"  style="padding-left:20px;padding-right:20px;padding-bottom:20px;padding-top:10px;"><table width='100%' cellpadding='0' cellspacing='0'>
		<?php if ($popup_record['po_img_path']) { ?>
		<tr>
			<td><img src="<?=$App->_url_data.$popup_record['po_img_path']?>"<?php if ($popup_record['po_map_txt']) { ?> usemap="#popup_map" border='0'<?php } ?>></td>
		</tr>
		<?php } ?>
		<?php if ($popup_record['po_html_path']) { ?>
		<tr>
			<td><?php include_once $App->_dir_data . $popup_record['po_html_path']?></td>
		</tr>
		<?php } ?>
		<?php if ($popup_record['po_txt']) { ?>
		<tr>
			<td><?=nl2br($popup_record['po_txt'])?></td>
		</tr>
		<?php } ?>
		</table></td>
        <td width="12" align="right" valign="top"><table width='100%' <?php if ($popup_record['po_height'] > 500) { ?>height='340'<?php } else { ?>height='100%'<?php } ?> cellpadding='0' cellspacing='0'>
			<tr>
				<td background="/template/popup/images/pop_img02_line.gif"></td>
			</tr>
		</table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height='50'><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="21" background="/template/popup/images/pop_img02_btmbg.gif"><img src="/template/popup/images/pop_img02_btm_1.gif" width="21" height="50"></td>
		<?php if($preview) { ?>
        <td align="center" background="/template/popup/images/pop_img02_btmbg.gif">&nbsp;
		<?php if ($popup_record['po_cookie']) { ?><input type="checkbox" name="chk" value=""  onclick="javascript:closeWin_preview(document.forms['popup_form<?=$seq?>'],'lay_popup_skin<?=$seq?>')"/> <label for='chk_id'>오늘하루 이창을 열지 않음</label> <a href="#" onclick="javascript:closeWin_preview(document.forms['popup_form<?=$seq?>'],'lay_popup_skin<?=$seq?>')"><img src="/template/popup/images/pop_close.gif" alt="닫기" width="52" height="18" border="0" align="absmiddle"></a><?php } ?>
		</td>
		<?php } else { ?>
        <td align="center" background="/template/popup/images/pop_img02_btmbg.gif">&nbsp;
		<?php if ($popup_record['po_cookie']) { ?><input type="checkbox" name="chk" value=""  onclick="closeWin(document.forms['popup_form<?=$seq?>'],'lay_popup_skin<?=$seq?>')"/> <label for='chk_id'>오늘하루 이창을 열지 않음</label> <a href="#" onclick="closeWin(document.forms['popup_form<?=$seq?>'],'lay_popup_skin<?=$seq?>'); return false;"><img src="/template/popup/images/pop_close.gif" alt="닫기" width="52" height="18" border="0" align="absmiddle"></a><?php } ?>
		</td>
		<?php } ?>
        <td width="21" align="right" background="/template/popup/images/pop_img02_btmbg.gif"><img src="/template/popup/images/pop_img02_btm_2.gif" width="21" height="50"></td>
      </tr>
    </table></td>
  </tr>
</table>
<?php if ($popup_record['po_map_txt']) { ?>
<map name="popup_map">
	<?=$popup_record['po_map_txt']?>
</map>
<?php } ?>
	  </form>
</div>

</body>
</html>